package com.qc.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qc.sys.entity.SysMenu;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * (SysMenu)表数据库访问层
 *
 * @author AltmanQccc
 * @since 2020-08-26 10:30:22
 */
@Repository
public interface SysMenuDao extends BaseMapper<SysMenu> {

    @Select("select max(ordernum) from sys_menu")
    Integer queryMenuMaxOrderNum();


    @Select("select count(1) from sys_menu where pid = #{id}")
    Integer queryMenuChildrenCount(Integer id);
}